//
//  Label+ImageButton.m
//  WE
//
//  Created by apple on 15/11/20.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "Label+ImageButton.h"
#import "Size.h"
@implementation Label_ImageButton


- (UIButton *)setupButtonFrame:(CGRect)frame title:(NSString *)title image:(UIImage *)image{
    if (self) {
        
    
    
    _button = [UIButton buttonWithType:UIButtonTypeCustom];
    _button.frame = frame;
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(15*Width, frame.size.height/3, 80, frame.size.height/3)];
    self.label.font = FONT(12);
    self.label.textColor = [UIColor blackColor];
    self.label.text = title;
    [_button addSubview:self.label];
    
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(WindowWidth - 30*Height, frame.size.height/3, 15*Height, frame.size.height/3)];
    self.imageV.image = image;
    [_button addSubview:self.imageV];
    
    
    
    }
    return _button;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
